<template>
  <div>
    <div class="page404">
      <div>404</div>
      <button @click.prevent="$router.push('/index')">点击此处返回首页</button>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.page404 {
  position: relative;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  text-align: center;
  div {
    font-size: 150px;
    color: chocolate;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sc 15s ease infinite;
  }
}
button {
  top: 0;
  left: 0;
  right: 0;
  position: absolute;
  display: inline-block;
  margin: 0 auto;
  background-color: #00ac94;
  width: 200px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  height: 60px;
  border: none;
  border-radius: 15px;
  transform: translateY(615px);
  cursor: pointer;
  outline: none;
}
@keyframes sc {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
</style>
